package com.changhongit.dao;

import java.util.List;

import com.changhongit.base.BaseDao;
import com.changhongit.entity.ServiceProvider;
import com.changhongit.returnentity.ReturnServiceProvider;

public interface ServiceProviderDao extends BaseDao<ServiceProvider> {
	public List<ServiceProvider> findAll();

	public void deleteServiceProvider(String id);

	public void saveServiceProvider(ServiceProvider serviceProvider);

	public ServiceProvider findOneByName(String name);
	
	public ServiceProvider findOneByUserName(String userName);
	
	public void updateFlags(ServiceProvider serviceProvider);
	
	public List<ReturnServiceProvider> findAllServiceProviders(ReturnServiceProvider returnServiceProvider);
	
	public void getCallNum();
	
}
